import React from "react";
import { connect } from "react-redux";
import List from "../List/list";
function Modal() {
  function openClick() {
    console.log("展开高级搜索");
  }
  function addClient() {
    console.log("新增客户");
  }
  return (
    <div>
      <div>
        <div>
          <input type="text" />
        </div>
        <div>搜索</div>
      </div>
      <button onClick={openClick}> 展开高级搜索</button>
      <button onClick={addClient}> 新增客户</button>
      <List></List>
    </div>
  );
}
const mapStateToProps = (state) => {
  return {
    isShow: state.isShow,
  };
};
const mapDispatchToProps = (dispatch) => {
  return {
    showDown() {
      const action = { type: "showDown" };
      dispatch(action);
    },
    showUp() {
      const action = { type: "showUp" };
      dispatch(action);
    },
  };
};

export default connect(mapStateToProps, mapDispatchToProps)(Modal);
